<?php
/**
 * Created by PhpStorm.
 * User: henryxi-mac
 * Date: 2015/4/27
 * Time: 11:13
 */
?>

<!DOCTYPE html>
<html>
<head lang="en">
    <base href="<?php echo $this->config->item('base_url')?>"/>
    <meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">
    <meta charset="UTF-8">
    <title></title>
    <link href="../WeEngine/web/resource/css/bootstrap.min.css" rel="stylesheet">
    <link href="../WeEngine/web/resource/css/common.css" rel="stylesheet">
    <link href="../WeEngine/web/resource/css/bootstrap-theme.min.css" rel="stylesheet">
    <script src="js/jquery.js"></script>
    <script src="../WeEngine/web/resource/js/lib/bootstrap.min.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="js/weixinshare.js"></script>
    <script type="text/javascript">
        wx.config({
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: 'wx4f9673869a5e2182', // 必填，公众号的唯一标识
            timestamp: "<?php echo $signPackage['timestamp'] ?>" , // 必填，生成签名的时间戳
            nonceStr : "<?php echo $signPackage['nonceStr'] ?>", // 必填，生成签名的随机串
            signature: "<?php echo $signPackage['signature'] ?>",// 必填，签名，见附录1
            jsApiList: ['onMenuShareTimeline',
                'onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
        });

        var imgUrl = "<?php echo $this->config->item('base_url')?>images/logo.jpg";
        var lineLink = "<?php echo $this->config->item('base_url')?>";
        var descContent = "西安移动宽带7折优惠券500张，点击免费抢！";

        var shareTitle = "西安移动宽带7折优惠券500张，点击免费抢！";
        registerShare();

    </script>